logical operators in java

84

logical operators in java -

-----------------------------------
| Logical Operato | Java Operator |       boolean wakeupTime = true;
-----------------------------------	      boolean sleeping = false;
|       AND       |       &&      |       if(wakeupTime && !sleeping){
|       OR        |       ||      |           makeCoffee();
|       NOT       |       !       |       }
-----------------------------------

Comments

Submit
0 Comments